﻿cmake_minimum_required(VERSION 3.14)

project(MyCLib LANGUAGES CXX)

set(CMAKE_INCLUDE_CURRENT_DIR ON)

set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)


file(GLOB SourceFiles ${SourceFileTypes})
add_library(${PROJECT_NAME} SHARED
        ${SourceFiles}
        )

INSTALL(TARGETS ${PROJECT_NAME}
        RUNTIME DESTINATION bin
        ARCHIVE DESTINATION lib
        )

#target_link_libraries(${PROJECT_NAME}
#        PRIVATE
#        DD::ZNode
#        )
#target_compile_definitions(${PROJECT_NAME}
#        PRIVATE
#        ZNODEOUT_LIBRARY)

target_include_directories(${PROJECT_NAME} PUBLIC
        $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
        $<INSTALL_INTERFACE:include>  # <prefix>/include
        )
